const { post } = require("./fetch.js")

async function createContract(data) {
  try {
    const response = await post('/api/helloris/student/create', data);
    console.log(response.data);
  } catch (error) {
    console.error('请求失败:', error);
  }
}

// 调用函数
const postData = {
    "id": "",
    "name": "赵66",
    "guardianName": "赵星明",
    "guardianRelation": 1,
    "mobile": "15810275841",
    "guardianIdNo": "110226198909092311",
    "birthday": "2024-03-01",
    "gender": 1,
    "educatingSchool": "阿斯顿",
    "gradeRegime": 1,
    "grade": 11,
    "description": "阿斯顿",
    "province": "北京",
    "city": "北京",
    "county": "东城区",
    "address": "阿斯顿",
    "houseNumber": "",
    "familyMembers": [
        {
            "name": "",
            "mobile": "",
            "idNo": "",
            "otherContact": "",
            "relation": ""
        },
        {
            "name": "",
            "mobile": "",
            "idNo": "",
            "otherContact": "",
            "relation": ""
        }
    ],
    "familyDescription": ""
}
createContract(postData);
